package data;

import org.newdawn.slick.SpriteSheet;
import org.newdawn.slick.geom.Vector2f;

/**
 *
 * @author JtR
 */
public class GameEntity {
    private AnimationInfos animationInfos;
    private String description;
    private int x;
    private int y;
    private int width;
    private int height;
    private SpriteSheet textures;
    private Vector2f direction;

    public GameEntity(String description, int x, int y, int width, int height, long timeBetweenTextureChange, SpriteSheet textures) {
        this.description = description;
        this.x = x;
        this.y = y;
        this.width = width;
        this.height = height;
        this.animationInfos = new AnimationInfos(timeBetweenTextureChange);
        this.textures = textures;
        direction = new Vector2f();
        direction.x = 0;
        direction.y = 0;
    }

    public AnimationInfos getAnimationInfos() {
        return animationInfos;
    }

    public String getDescription() {
        return description;
    }

    public int getHeight() {
        return height;
    }

    public int getWidth() {
        return width;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

    public void setAnimationInfos(AnimationInfos animationInfos) {
        this.animationInfos = animationInfos;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public void setX(int x) {
        this.x = x;
    }

    public void setY(int y) {
        this.y = y;
    }

    public void setTextures(SpriteSheet textures) {
        this.textures = textures;
    }

    public SpriteSheet getTextures() {
        return textures;
    }

    public Vector2f getDirection() {
        return direction;
    }
}
